package com.hm.oauth.auto;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author shishun.wang
 * @date 上午10:24:07 2016年8月31日
 * @version 1.0
 * @describe 
 */
@Configuration
@EnableConfigurationProperties({ OauthProperties.class })
public class OauthConfig {
	
	@SuppressWarnings("unused")
	@Autowired
	private BeanFactory beanFactory;
	
//	@Bean
//	public FilterRegistrationBean oauthFilter(){
//		FilterRegistrationBean filterRegistration = new FilterRegistrationBean();
//		filterRegistration.setFilter(new OauthFilter());
//		filterRegistration.setUrlPatterns(Arrays.asList(new String[]{"/api/v1/**"}));
////		filterRegistration.setOrder(2);
//		
//		return filterRegistration;
//	}
}
